#include "../Tools/GLHeaders.hpp" 
#include "DisplayFunc.hpp"

#include <cmath>
#include "../Tools/Chrono.hpp"
#include "../Tools/ReferenceCube.hpp"
#include "../Tools/ReferenceFrame.hpp"

void DrawGLScene(void){
	static Chrono time;
	static bool init = false;

	if(!init){
		time.Activate();
		init = true;
	}

	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  glLoadIdentity();
  glTranslatef(0.0f, 0.0f,-3.0f);
	glRotatef(80*time.GetTime(), 1.0f, 1.0f, 1.0f);
	
	ReferenceFrame.Draw();
	ReferenceCube.Draw();
	
	glutSwapBuffers();
}
